package com.zhuhjay.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Zhuhjay
 * @since 2023-02-07
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_file")
@ApiModel(value = "SystemFile对象", description = "")
public class SystemFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("真实文件名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("文件md5值")
    @TableField("identifier")
    private String identifier;

    @ApiModelProperty("文件类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("文件大小(B)")
    @TableField("size")
    private Long size;

    @ApiModelProperty("创建文件的用户id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty("创建时间(上传时间)")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("该文件状态(1:存在,0:删除)")
    @TableField("status")
    private Byte status;
}
